<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Getting Started: Serving Web Content</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>


<div th:class="container">

    <form th:class="form-signin" th:action="@{/login}" th:method="POST">
        <h2 th:class="form-signin-heading" th:text="请登录"></h2>
        <label th:for="inputUsername" class="sr-only" th:text="用户名"></label>
        <input th:type="text" th:id="inputUsername" th:class="form-control" th:placeholder="用户名" th:required="true"
               th:autofocus="true" name="username"/>
        <div>
        <label th:for="inputPassword" class="sr-only" th:text="密码"></label>
        <input th:type="password" th:id="inputPassword" th:class="form-control" th:placeholder="密码"
               th:required="true"  name="password"/>
        </div>
        <div>
        <button class="btn btn-lg btn-primary btn-block" th:type="submit">登录</button>
        </div>
    </form>

</div> <!-- /container -->


</body>
</html>
